SUBDIRS := $(shell find . -maxdepth 1 -type d -name '[!.]*' -print)

ifeq ($(MAKECMDGOALS),clean)
MAKEARGS := clean
endif

all: subdirs

.PHONY: subdirs $(SUBDIRS)
 
subdirs: $(SUBDIRS)
     
$(SUBDIRS):
	@$(MAKE) $(MAKEARGS) -C $@

clean: subdirs

